package net.mikoo.seals.agent.biz.mapper.agent;

import java.util.List;

import org.mybatis.spring.annotation.MapperScan;

import net.mikoo.seals.agent.model.Role;

@MapperScan
public interface RoleMapper {
	
	/**
	 * 添加
	 * 
	 * @param copyFrom
	 * @return
	 */
	public Integer insert(Role role);

	/**
	 * 删除
	 * 
	 * @param copyFromId
	 * @return
	 */
	public Integer deleteByPrimaryKey(Long roleId);

	/**
	 * 更新
	 * 
	 * @param copyFrom
	 * @return
	 */
	public Integer updateByPrimaryKey(Role role);

	/**
	 * 查询
	 * 
	 * @param copyFromId
	 * @return
	 */
	public Role selectByPrimaryKey(Long roleId);

	/**
	 * 
	 * @param copyFromQuery
	 * @return
	 */
	public List<Role> selectByQuery(Role role);
	
	/**
	 * 
	 * @param 
	 * @return
	 */
	public List<Role> selectAll();
	
	/**
	 * 
	 * @param 
	 * @return
	 */
	public List<Role> selectAllEnabled();
   
}